<?php
class Status extends AppModel {
	var $name = 'Status';
	var $displayField = 'title';
	//The Associations below have been created with all possible keys, those that are not needed can be removed
         var $virtualFields=array(
            //'display'=>'CONCAT(Status.title)'
        );
	var $hasMany = array(
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'status_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		),
		'Dmdform' => array(
			'className' => 'Dmdform',
			'foreignKey' => 'user_status_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);
        function __construct($id = false, $table = null, $ds = null) {
            parent::__construct($id, $table, $ds);
            $this->virtualFields['display'] = sprintf('CONCAT(%s.title)',  $this->alias);
        }


}
?>